package com.supreme.commonboot.utils;

import lombok.Data;

import java.io.Serializable;

@Data
public class RespData implements Serializable {
    private int status;
    private String message;
    private Object data;

    public RespData() {
        this.status = 0;
        this.message = "success";
    }

    public RespData(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public RespData(Object data) {
        this.status = 0;
        this.message = "success";
        this.data = data;
    }
}
